import com.swotplus.admin.Application;
import com.swotplus.system.sys.entity.SysUser;
import com.swotplus.system.sys.service.SysUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {Application.class})
@ContextConfiguration
public class test {
    @Autowired
    private SysUserService sysUserService;

    @Test
    public void test(){
        List<SysUser> list= sysUserService.list();
        System.out.println(list.size());
    }
}
